﻿@model Alma.Models.ProductCriterionModel
@{
    ViewContext.Controller.ViewBag.Breadcrumb.Enter("Critères");
}
<div class="fullcol">
    <h1>
        Ajouter un critère</h1>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    @using (Html.BeginForm())
    {
        @Html.ValidationSummary(true)        
        <div class="editor-label">
           Nom du critère
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.Name_Criterion, (ViewData["drop2"] as SelectList), "Selection du critère")
            @Html.ValidationMessageFor(model => model.Name_Criterion)
        </div>

        <div class="editor-label">
           Valeur
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Value)
            @Html.ValidationMessageFor(model => model.Value)
        </div>

        <p>
            <input type="submit" value="Ajouter" />
        </p>
    }
</div>
